package com.adnaan.api.controller;

import com.adnaan.common.model.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页控制器
 */
@Tag(name = "首页接口", description = "用于测试系统是否正常运行")
@RestController
@RequestMapping("/api")
public class AppIndexController {

    /**
     * 首页测试接口
     */
    @Operation(summary = "首页测试接口", description = "用于测试系统是否正常运行")
    @GetMapping("/index")
    public Result<String> index() {
        return Result.success("Adnaan用户端启动成功!");
    }
}
